package com.lik888.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    //username构造函数
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    private static final long serialVersionUID = 1L;

    private String username;

    @TableId(value = "userid", type = IdType.AUTO)
    private Integer userid;

    //设置默认值
    private String password = "123456";

    private Integer status;


}
